package com.mycity.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.ResultSetExtractor;

import com.mycity.bean.Tag;

public class TagSetExtractor implements ResultSetExtractor<Tag> {

	  @Override
	  public Tag extractData(ResultSet rs) throws SQLException {
	    Tag Tag = new Tag();
	    Tag.setTagId(rs.getInt("tagId"));
	    Tag.setTagName(rs.getString("tagName"));
	    return Tag;
	  }
}